<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        //对象
        let student = {
            name:"ikun",
            age:18,
            id:111,
            say:function() {
                console.log("hello");
            }
        }
        console.log(student);
        console.log(student.say());
        //函数
        // function add(x,y) {
        //     return x+y;
        // }
        // console.log(add(1,2));
        
        // console.log(add(1,2,3));
        // console.log(add(1));
        // console.log(add('a'));
        // function hello() {
        //     console.log("hello");
        // }
        // hello();
        //数组
        // let arr = new Array();
        // arr[0] = 1;
        // arr[1] = "hello";
        // arr[2] = 'a';
        // console.log(arr);
        // let arr2 = [1,"hello",'a'];
        // console.log(arr2);
        // arr2[3] = 2;
        // console.log(arr2);
        // arr2[1] = "javaScript";
        // console.log(arr2);
        // arr2.splice(2,2);
        // console.log(arr2);
        //alert("hello javascript");
        // let name = "张三";
        // let aa = 10;
        // console.log(name);
        // console.log(aa);
        // let a1 = 10;
        // let a2 = "10";
        // let a3 = 10;
        // console.log(a1 == a2);
        // console.log(a1 === a2);
        // console.log(a1 == a3);
        // console.log(a1 === a3);
    </script>
</body>
</html>